LB-431: Internationalization issues

fixed for javascript also added the utf8 support.
LB-431: Internationalization issues

fix for str.format also.