We only supports a few charset, when a charset is not supported, we should return error. Also enforce charset to be lower case.