Revert "Add some explicit string -> char* casts"

This reverts commit d8411c6bfb9652bef874a3570b56dcd92d68feb7.