Fixed errors outputting urls as strings after changing the scheme