Allow solr module to index and search metadata fields that contain spaces

The metadata extractor writes field names that contain spaces, but solr does
not allow this and incorrectly indexes these fields.