encode pretty url