Trim off charset.