Rewrite outgoing content to fix urls