Better checks for decoding base64

If it's not base64, don't do anything