Update Versioning script to support custom encoding