Fix &quot; javacript encoding problem