remove encoding stuff