Add customizable MySQL charset, patch by Shurik