Fix encoding and style problems in formatter.

Without this changes it looks like this:
http://tau.rghost.ru/private/50095385/325ff3874b8ee5468cb2273c03911f9e/image.png (30 days remain link)