Fix deprecated string conversion warnings