Fixes dialyzer warnings + removes unused stuff
mysql:encode/2 with tests