Fixed up the /substitute-spaces endpoint.