add flask documentation
fixed utf8 encoding if needed for the uploaded file