Fixed: OTRS, MySQL, utf8 charset and non-BMP characters problem (bug#10396, thanks to ib.pl).
Moved Encode to the proper file.
Tidied.
OM: robuster debugging of object destruction

Some objects contain undeclared dependencies to other objects, which does
not in itself make any of them leak, but it does mean that the calculated
order of destruction does not always succeed this way.

This patch delays the debugging step until all the OM has tried to
destroy all objects. so that those undeclared dependcies do not cause
false positives.
Declare missing dependencies, make PackeObject OM-Aware

The dependencies are needed for order of destruction, even if the constructor
does not need them, or create them on their own
Package manager: use object manager directly

not keeping %CommonObjects around makes global destruction more robust
Fixed bug 10581, thanks to S7.
Fixed bug#6601, thanks to S7.
Fixed CHANGES.
Added UTF8 validity checking to ArticleStorageSwitch when storing attachments.
Added missing explicit package dependencies.
Merge branch 'object-manager-robuster-destroy-debug' of github.com:moritz/otrs
Merge branch 'om-declare-more' of github.com:moritz/otrs
Merge branch 'omize-package-manager' of github.com:moritz/otrs
Typo.
Added test cases for SQL queries with large IN conditions.
ObjectManager improvement: handle events before destroying objects (thanks to Moritz Lenz).