Bug 729944 - UTF-8 characters are not always encoded correctly