Support new ruby versions through String#bytes

New ruby versions need this as the `String#[]` method doesn't return the byte.