Escape resource attributes with spaces