Fixing potential problems with characters >=128 in simplematch()