UPDATE: Once I looked at the problem in Firebug, I found my mistake immediately. And it was an embarrassing unmatched double quote that I must have deleted
You don't need to escape or encode. jQuery will take care of properly URL encoding the data:
data: { someHtml: $(this).html().substring(0, 1000) },