Fix UTF-8 Bug (JIRA 116), Merge Research Branch, Remove warnings and Modify static variables.