Add read_text method for dictionaries