Don't use encoding detection since it's very slow.
Use yappi as profiler.