Fixed encoding issues

Thanks to matt on stackexchange
http://stackoverflow.com/questions/17627269/ruby-gem-randomly-returns-en
coding-error