Let's escape strings for javascript

Fix #1048
Translate autosave date/time
Fix database_config error
Merge pull request #1049 from mlocati/fix-1048

Let's escape strings for javascript
Merge pull request #1051 from mlocati/localize-composer-autosave-date

Translate autosave date/time