Fix encrypt_character