sanitize POST parameters

in rack the POST parameters are a StringIO object in env['rack.input']