Core: Alter the kernel string functions to use std::string instead of const char*.

Most functions already operate on std::strings. This also removed the need to manually null terminate thread names.