better logging on URL replacements
fix bug in picking font content type