Escape newline characters when dispatching data

FIX for Issue #881 .

As this is my first commit to an open source project ever, please be understanding if I made some mistakes. I'll try and correct every problem that might arise.

As I am not really familiar with the structure of the mopidy or mpd in general, there might be a better way to fix this I don't know about. I am more than willing to adapt and change it if it is necessary!
We do a similar operation already for playlist names (https://github.com/mopidy/mopidy/commit/091f8ffdf064c34277b08a1f20820f250c846b30) where we also catch the '\r' carriage return characters that Windows likes.