Fixes File.write which is not supported