revert strncpy->ast_copy_string changes where the semantics are subtly different