I would think static char const encoding[] = "..."; would be better for many reasons here.