diff --git a/import/index_scripts/getFulltext.bsh b/import/index_scripts/getFulltext.bsh
index 4c24dacfa3e4e3811314a6bd9cb706779362698b..6385c8640b4a21ef68add7ee431ae1f51bcedb91 100644
--- a/import/index_scripts/getFulltext.bsh
+++ b/import/index_scripts/getFulltext.bsh
@@ -85,8 +85,8 @@ public String getFulltext(Record record, String fieldSpec, String extension) {
     Iterator fieldsIter = fields.iterator();
     if (fields != null) {
         while(fieldsIter.hasNext()) {
-            // Get the current string to work on:
-            String current = fieldsIter.next();
+            // Get the current string to work on (and sanitize spaces):
+            String current = fieldsIter.next().replaceAll(" ", "%20");
             // Filter by file extension
             if (extension == null || current.endsWith(extension)) {
                 // Load the parser output for each tag into a string
@@ -257,4 +257,4 @@ public String harvestWithParser(url, settings) {
         return harvestWithTika(url, settings[1]);
     }
     return null;
-}
\ No newline at end of file
+}