Revert string_to_binary changes in 457af60e. Fixes #273.