Add method `encode_non_recognized_characters` as a temporary solution to issue #6