Basic JID parsing/checking.