Fixes a canonicalization bug. Apparently .capitalize() does not work the way I thought.