Added a function to do intelligent unicode -> ascii conversion, close #3.