Merge pull request #115 from apache/Resources

Fix getResources in the case of file paths with spaces.