Bring normalization algorithm closer to the spec

No logical difference so far.
1 file changed