Changed 'file' flag in charset method, see Issue #167.