add detection of non-ascii characters