cleaned up code
changed sms encoding to ISO-8859-1