Escape powerline output to avoid wrapping in console

Not sure if this is the best way but it is the only way I could get it to work. I use tmux and have a lot of smaller terminals which were behaving fairly ugly when using powerline due to it not escaping non-printing characters.