Core: Get rid of a few c_str/strlen calls