Check for BOM character when returning strings.