Handle Strings with escaped quotes and apostrophes correctly

This is my first stab at solving the issue, it's messy but it works. Thoughts?

Also, how are you supposed to add resources? What I did was manually add a new entry to R.java with the id 0x0000, and then ran the build resources script.