Fix for ejabbed bug #359 - now strings are formatted correctly.

I have created a fix for the bug #359 I reported earlier today.

It has been tested and verified at our jabber server.