fixes unkown encoding error under node 0.8 when running tests