fix for base64-encoded resources and added dump utility