Replace spaces with underscores in source URIs