parser: bring file_to_const_char up to standard