1. removed "Set names UTF-8" encoding (it generated problems with encoding)
2. added in json_encode "JSON_UNESCAPED_UNICODE" option