Change check_path_syntax() to use the new next_mb_char_size() function