Completely rewritten how strings are parsed and fixed related escaping bugs