addressed some issues when sending json objects where strings expected

This allows the usage of an android client, as provided here: https://github.com/K-GmbH/licodeAndroidClient