Ensure we count the length correctly in mangle_map.