fix protocol & URL https support

Added helper