Second $charset should of been $charsetFlag