removed .setEncoding because of browser errors