bug fix: extraneous sprintf messing with string escaping