Make tracing work with MongooseIM

This involves fixing string type issues.