[DoctrineBridge] Fixed non-utf-8 recognition