Encode avatar identifier

So that things like 'foo/bar' don't break the demo.

Closes #7.