base64 decode issue

Replace `-` and `_` characters before decoding base64

Closes #1