Catalysis of the reactions: an (S)-2-haloacid + H2O = a (2R)-2-hydroxycarboxylate + a halide anion + H+, and an (R)-2-haloacid + H2O = a (2S)-2-hydroxycarboxylate + a halide anion + H+.
2-haloalkanoic acid dehalogenase activity