fix uri encoding for node 0.11