moved tilde check to types.File.convert