0.5.1
dont check for encoding in HEAD
refactoring