Encodes a string to a 1 pixel high png file.