handle url encoding in options list