Fix string escaping to print valid code