when cloning the repo with different character encoding. Replaced ad hoc implementation with commons-lang3 method.