FIX - Encoding problems

Encoding by js instead of php