add encryption to shares

utf-8 byte sequences are still causing errors