fix build error: change from_bits to from_bits_truncate, avoid Option<> wrapper
fix compile error: StrBuf change
fix compile error: string change, raw accessor change
Merge pull request #10 from andelf/master

Fix compile error