GUAC-726: Replace overwrite function with much saner function based on character validity checks along column edges.