Support embedded resource urls starting with //, close #1893