This behavior is misleading. If you can't encode anything, you shouldn't be able to use containers either.