fix SaveAs httpfs bug (Thanks Jonathan Leliaert)