convert spaces to dashes for uri