Encode directory name when writing to stdout.

Fixes #59 on github.

Saddening to see though that this was exposed because someone put
a unicode dash in an otherwise normal album title.  People should stop
abusing unicode just because they can.