original_bytes method is not available while encrypting files

fix for AttributeError: 'str' object has no attribute 'original_bytes' error