backport from wp-3.8
enhanced wpautop