[DoctrineBridge] Simplify shortening of parameters.

Since we verify if we work with an unicode string before, there is no need to call mb_detect_encoding().