Fix error with some ascii and unicode, ref #3