Make subject RFC compliant

- [ ] Encode nonascii subject into rfc-compliant string
- [ ] Strip newline characters