Fix unicode handling in comment middleware. Fixes #3.