fix trimming char '=' in decode method