Replace %2F to slashes and use https by default