Encode Ruby strings as lists of integers, like Erlang