compare lowercase jids

Required by esl/ejabberd_tests#78