Rack Middleware to remove non-printable characters from input streams