Write string to file using Guava