Added support for invalid URI message handler