Add support for saving binary files