Fix .txt redirect when value is not json (#20).