Removed the unnecessary encoding stuff.