Replace _ with - when serializing a Resource. Closes GH-12.