Fix UnicodeDecode error when creating new tasks.

Fixes #392.
Merge pull request #393 from 4teamwork/deif-task-unicodedecodeerror

Fix UnicodeDecodeError when creating new tasks.