canonicalize: compare user ids as string rather than bytes
add unit test for duplicate user ids (fix later!!)