Commit message is properly converted to ''unicode'' before being added to the ticket by the trac-post-commit-hook. There's also provision for explicitely specifying the encoding of the message given as argument to the script, in case the default conversion done by to_unicode would not be appropriate. Closes #1310.