Sydkoreas parlament har röstat ja till ett förbud mot hundkött som mat, rapporterar nyhetsbyrån AP.