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