Homology planes and algebraic curves