added import of encodings -- fixes script errors on android devices