Fixes for signing; still need quoted-printable solution; started on encryption