use platform encoding instead of hardcoded UTF-8