GDToolkit::save() fails for some custom-local stream wrappers