automatically convert strings to ByteString in ccall. fixes #5673, closes #5677