support chars that need encoding in playlist names when browsing. Closes #384

To be able to both display and use the playlist name as a javascript param inside the templates, the title needs to be encoded and then decoded inside the quotes.

Another option could have been to modify the API to return an html-escaped title, but I wanted to keep it html-agnostic