Make html.escape handle both bytes / string.