filename should be encoded