genetics: Add URL encoding/decoding

Closes #59.