Encode _id correctly for refactored Location