build system: solve invalid character problems