Fix EZP-21585: ORA-12899 when creating content in japanese

Externalize some string related operations in the eZDBInterface
so it is possible to override them to have a different
behavior depending on the DB in use.