Fix issue with doctype being stripped and an issue with malformed URLs containing double-slashes.
Fix issue with doctype being stripped and an issue with malformed URLs containing double-slashes.

mrpau/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,learningequality/kolibri,indirectlylit/kolibri,learningequality/kolibri,learningequality/kolibri,learningequality/kolibri,mrpau/kolibri,mrpau/kolibri,indirectlylit/kolibri,mrpau/kolibri