Fix uploading bugs.

- For non-device sensors the description was appended with an '/'
- Sensor data containing single quotes caused problems.