Implement basic putString for stdio.