added exception when trying to convert zero-char
fixed test bug (induced by platform-dependent charset)
refactored for conforming to Maven standard directory layout