fix for #37 protocol-less URLs getting replaced