Lowercase tag names to match `endElementNS()`

By failing to lowercase the tag names in both places, elements with
uppercase letters (or that are in unknown namespaces with uppercase
letters in them) were not being captured as expected.

Fixes issue 389.
Thanks to Shawn Fitzgibbons for reporting this!