still trying to fix encoding. now all special characters get converted to html entities