Fix failure on some unicode characters