Fix blob encoding issue