utf8 Support and issues with MySql 5.1.73-1+deb6u1

Hi!

I had some issues with special chars in topic names which were not converted correctly and missing regex-conversions for my database (MySql 5.1.73-1+deb6u1).

The other commits address problems with my database throwing errors for tablenames in parentheses or wrong conditions like for the boolean-query.