Minimal charset -> encoding parsing