Strip whitespace before posing in chat

Markdown links don't work if you end with a space, for example [Stack
Exchange ](http://stackexchange.com/) doesn't get formatted as a link.