If that’s the literal string you’re passing to Osmosis then it’s an encoding problem. You’ve got curly quote characters instead of "
I can’t see any other reason.
The reason Osmosis is throwing an error is that it thinks you’re still on task one (read-xml) because of the following bit:
Note curly quote. There are other curly quotes in your string too. Remove them and replace with the proper character and try again. 
Alex