Use a StandardCharset for encoding the analysis instead of a string
Introduced one too many levels of try in the main service