Make messages unicode always and fix integer userids

Thanks to @mmerickel for seeing that integer userids
would break.

After investigating it appears that the python logging
module really wants unicode messages. So follow @mmerickel's
other suggestion and have _get_url and _get_message
always return unicode. Use repr() as the safe option
for things we can't decode or identify as unicode easily.