As part of your equipment have something to dig with, and when you relieve yourself, dig a hole and cover up your excrement.
NIV
And you shall have a paddle or shovel among your weapons, and when you sit down outside [to relieve yourself], you shall dig a hole with it and turn back and cover up what has come from you.
AMP
And thou shalt have a paddle upon thy weapon; and it shall be, when thou wilt ease thyself abroad, thou shalt dig therewith, and shalt turn back and cover that which cometh from thee:
KJV
Let them live among you wherever they like and in whatever town they choose. Do not oppress them.
NIV
He shall dwell with you in your midst wherever he chooses in one of your towns where it pleases him best. You shall not defraud or oppress him.
AMP
He shall dwell with thee, even among you, in that place which he shall choose in one of thy gates, where it liketh him best: thou shalt not oppress him.
KJV