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

Bugfix for invalid multibyte char (US-ASCII).