A Hartman-Grobman theorem for algebraic dichotomies