URL-encode nullbytes in parameters

[Closes #61]