Encode ref name to support it with '/'
Scala-arm and failure handling for indexed check