bunp version - fix encoding declaration, fix options passing