The problem is not from this line actually, but it is coming from  https://github.com/mozilla/webmaker.org/pull/754/files#diff-aa9622c04cb7577350823f1f1b6f2fceR9 that is because of the option flag for parameter that is passing for `/:locale?/resources` so if we didn't pass `en-US` or any locale for some reason it didn't strip the optional flag `?` off there. So this bug was there before but I couldn't figure out the solution yet, and don't know if I should fix it here or in another bug.