Avoid some charset lookups

Background info at e.g. http://bugs.mysql.com/bug.php?id=61105
Remove unnecessary casts
Remove unnecessary semicolons
Add missing @Override annotations
Remove dead code
Merge branch 'master' of github.com:scop/hornetq