Fix unicode problem and also make display links a bit shorter

Seems fine. FYI I think you can be explicit about the encoding in the call to unicode("msg", "utf-8") if you wanted.