fixed #408: If host not includes http(s):// then add it automatically