tests: Api::substituteUrlParameters() in standalone test file
Api: fixed URL parameters escaping

e.g. ' ' => '%20'
Api: substituteUrlParameters() replaced by expandColonParameters() [BC break]