Fix hanging when trying to trim whitespace from binary files.
Version 0.13.17