Added Twitter support + bugfix on encoding