Should this encoding be done in all methods that take any ID?