Update services.php

Dynamic URL encoding added.