Ensure that UTF8 is used by rack

Closes GH-196, GH-198