Brute force attempt to make sure binary files get encoded properly