Fix problem with non-ascii characters