Proper string -> binary conversion.