Handle non-ascii characters