do not run res.setEncoding() if it does not exist (browserify), closes #...

...16