shadow_copy2: factor shadow_copy2_posix_gmt_string() out of shadow_copy2_insert_string()