Fix Ruby 2.0 issues

String#bytes returns an Array instead of Enumerator in 2.0