Convert character encodings as connect middleware.