server/source/native: fix wrong usage of .lstrip that produce garbled error messages (closes #2777641) [applied]