Replace spaces in constituency parameter with underscore. Fixes #838