Url encoding

Added url encoding.