Sanitize user input.

Addresses security related issues  -  #438.