Andreev scattering and Josephson current in a one-dimensional electron liquid