Use correct content-type when returning 'OK' responses.
Fix unicode-decode error when syncing tasks.