Fixed saving binary strings in the database