UTF-8 encoding for better handling different languages

I've found that when the output language isn't english and have different accents and letters, the script won't run well. This change fix that.