Fixed for international characters

Fixes error: Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8