Normalize resource names.

Addresses #60.