Add PHP 5.6 testing.
Add charset parameter.
Use tableAliasFor() to take maximum table length into account.
Use optimized truncation.