Encode url components.