fix for messages in invalid encoding from db-drivers