ensure ascii and move utils to util module