NXP-12727: Fix randomly failing tests under Windows by removing all \n and \r from compared strings, under Windows only