Check for existence of a defined character set in table creation SQL

Resolves #233
Apply charset fix on rest of the tables
Add charset check to update routine
Removing superfluous parenthesis in statement
Merge pull request #234 from x-team/issue-233

Check for existence of a defined character set in table creation SQL