Fixing exception on badly encoded subject