Fix behavior of string containing Unicode