RAII and explictly use char version of isdigit... will crash on linux otherwise