Fix api url encoding issue.