Update for encoding url