// Changed base64 to urlencode in import (and fixed filename issue)