Use WKB rather than WKT, as that truncates a bit.

This also allows the save polygon code to be simpler.
Include a one-off script to fix the imported boundaries.