Use StringValueCStr instead of StringValuePtr