Fix empty value string representation in pretty mode

This is the same as the pull request in #30 by @goya and also wished by @stefanbuck. It add a valid test case to support the change.