fixed encoding issue causing issues with lookup of BDict keys