Bugfix for ruby <2.0 (UTF-8 encoding needed)

Bugfix for invalid multibyte char (US-ASCII).
Merge pull request #373 from keepinmind/patch-1

Bugfix for ruby <2.0 (UTF-8 encoding needed)