class Sinatra::Base

def force_encoding(*args) settings.force_encoding(*args) end

Keep an eye on Rack's LH #100.
The latter might not be necessary if Rack handles it one day.

* casting params to Encoding.default_external
* defaulting to UTF-8
Fixes encoding issues by
def force_encoding(*args) settings.force_encoding(*args) end