fix for FPC cross-platforms and regression tests on non Win1252 systems