Make sure unicode params don't break logging in modules