fix for non-ascii characters