try to handle character encoding better