Hi there,
I've popped together a simple workflow which will do this for you...
https://dl.dropboxusercontent.com/u/6749767/Alfred/Workflows/URL%20with%20Dashes.alfredworkflow
Download and double click to install into Alfred, then use the keyword 'villa' in Alfred e.g.
villa villa yoga
A little about how this workflow works...
There is a keyword input which is set to 'villa' connected to a php script containing the following:
// replace spaces with -
$query = str_replace(' ', '-', "{query}");
// setup the URL to open
$command = "open 'https://www.villa-bali.com/en/villa/seminyak/$query'";
// open the URL
shell_exec($command);
This takes {query} and replaces spaces with -, then constructs the command to open that URL in OS X, then runs the command.
Hope this helps!
Cheers,
Andrew