i think you can improve this (and thus kill the escape strings TODO marker) with the Generator static escape method - this will allow quotes, newlines, etc inside the string literal.