Fix error due to bolt's API changes.

Bolt's API has changed its argument from `string` to `[]byte`, this PR will fix current error.