Input sanitizer for Erlang