support post input sanitization

Not a ruby/rack developer but it works for me.