don't die on null in escape_r_literal_string