string-to-byte shortcut