serialize using lowercase tag names, see:
http://stackoverflow.com/a/20704228