Remove incorrect cast found by -Wwrite-strings.