Changed some escaping. Still need a second pair of eyes for this.