allow integer ids to be encoded as strings