when saving, using file://
use file:, fix tests.