String encodings

This is for #3.