Add compatibility with Dovecot's bigint UIDs