changing Flask characters for compat with AngularJs