Fixes bug where last space was getting cut off from decoded string