Fixed load library for invalid encoding for OS (close #22)