Fix check_path_syntax() for multibyte encodings which have no '\' as second byte.