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