Replace raw:: substitutions for URLs with basic URLs due to issues with PDF generation