Core: Get rid of a few c_str/strlen calls
Merge pull request #7132 from lioncash/c_str

Core: Get rid of a few c_str/strlen calls