Fix coding style and C-string access

Refs #6118