rename 'encoding' option to 'binmode' for clarity