Fixed retrieving commit encoding