Fixed encrypt_character