Make application more UTF-8 aware and portable