Use a llvm::SmallString instead of a char[] to avoid corrupting the stack (thanks Axel)