Fix encoding issue with decrypted string in crypto wrapper